package com.buli.service.impl;

import com.buli.mapper.UserMapper;
import com.buli.pojo.User;
import com.buli.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserById(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }

    @Override
    public User getUserByName(String username) {
        return null;
    }

    @Override
    public int insertUser(User user) {
        return 0;
    }

    @Override
    public int updateUser(User user) {
        return 0;
    }

    @Override
    public int deleteUser(Integer id) {
        return 0;
    }

    @Override
    public int deleteUsers(Integer[] ids) {
        return 0;
    }

    @Override
    public List<User> getUserList() {
        return userMapper.selectAll();
    }

    @Override
    public List<User> getUserListByPage(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public int getUserCount() {
        return 0;
    }

    @Override
    public List<User> getUserListByPageAndSort(int pageNum, int pageSize, String sort) {
        return null;
    }
}
